package com.jk11a.shangdaast.library;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import com.jk11a.shangdaast.R;
import com.jk11a.shangdaast.subject.Subject;
import com.jk11a.shangdaast.user.LoginActivity;

public class lib_book extends Activity{
	
	private TextView title;
	private TextView publisher;
	private TextView publishtime;
	private TextView sysnopsis;
	private TextView writer;
	@Override
	  public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.lib_book);
	        Intent intent=getIntent();
	        title=(TextView)findViewById(R.id.book_title);
	        publisher=(TextView)findViewById(R.id.book_publisher);
	        writer=(TextView)findViewById(R.id.book_writer);
	        publishtime=(TextView)findViewById(R.id.book_publishtime);
	        sysnopsis=(TextView)findViewById(R.id.book_sysnopsis);
	        
	        title.setText(intent.getStringExtra("title"));
	        publisher.setText(intent.getStringExtra("publisher"));
		    writer.setText(intent.getStringExtra("writer"));
		    publishtime.setText(intent.getStringExtra("publishtime"));
		    sysnopsis.setText(intent.getStringExtra("sysnopsis"));
	        }
	
	  public void login(View v){
		  Intent intent =new Intent();   //退出app，跳转到登录首界面
		  intent.setClass(lib_book.this , LoginActivity.class);
		  startActivity(intent);
	  }
	
}
